package io.renren.modules.hos.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.hos.entity.AppointmentEntity;
import io.renren.modules.hos.form.AppointmentForm;

import java.util.Map;

/**
 * 预约表
 *
 * @author ryf
 * @email 2559228480@qq.com
 * @date 2021-12-21 13:40:39
 */
public interface AppointmentService extends IService<AppointmentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据病人id查询其所有预约挂号信息
     * @param id
     * @param params
     * @return
     */
    PageUtils queryPageByPatientId(Long id, Map<String, Object> params);

    /**
     * 添加预约
     * @param id
     * @param form
     * @return
     */
    AppointmentEntity addAppointment(Long id, AppointmentForm form);

    /**
     * 根据订单号查询
     * @param out_trade_no
     * @return
     */
    AppointmentEntity selectByOrderNum(String out_trade_no);
}

